package java_012_zuoye07;

import java.io.File;

public class java02 {
	public static void main(String[] args) {
		File file = new File("aaa\\bbb\\cccc");
		System.out.println(file.mkdirs());
		Delete(new File("aaa"));
		}

	private static void Delete(File file) {
		File[] listFiles = file.listFiles();
		for(File f1 : listFiles){
			if(f1.isFile()||(f1.isDirectory()&&f1==null)){
			System.out.println(f1.delete());
			}else{
				Delete(f1);
			}
	}
		System.out.println(file.delete());
	}
}
